﻿#pragma execution_character_set("utf-8")
#include "OperationDiv.h"
#include <QString>

double OperationDiv::GetResult()
{
    double result = 0;
    if (numberB() == 0) {
        throw QString("除数不能为0!");
    }
    result = numberA() / numberB();
    return result;
}
